Use macchanger to change an interface's MAC address
###################################################

Before we start using the macchanger command, you'll need to know the name of the network interface that you want to work with. You can execute the ip a command to see a list of all the available network interfaces on your system. In most cases this will include a wired, wireless, and loopback interface.

$ ip a

Identify the name of the network interface you want to change

As you can see in the screenshot above, the name of our network interface is enp0s3.

The second line of the output shows our current MAC address, which we've highlighted in the screenshot below. In our case, the MAC address is 08:00:27:ea:82:f9.
ip a command shows the current MAC address

Now we can begin to change the MAC address. Follow along with the step by step instructions below to see how. Note that you will need root permissions in order to execute the macchanger command.

    Use the -r option to get a random MAC address. In addition, just specify the name of your network interface.

    $ sudo macchanger -r enp0s3

    The output should show your current MAC address and the new one that has been assigned from macchanger.
    To verify the change, try running the ip a command again and you should see the new MAC address listed.

    $ ip a

    New MAC address configured for the network interface
    New MAC address configured for the network interface
    If you need to use a specific MAC address, you can do that with the -m option and the following command syntax.

    $ sudo macchanger -m b2:aa:0e:56:ed:f7 enp0s3

    Changing the MAC address to a specific value
    Changing the MAC address to a specific value
    Various vendors have different MAC address prefixes. Therefore, you can usually identify the manufacturer of a network device by looking at the first few bits of the MAC address. This means we can use macchanger to make our device look as if it belongs to a certain manufacturer. To see a list of known MAC addresses and their corresponding vendors, use the -l option.

    $ macchanger -l

//////////////////////////////////////////////////////////////// 
\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\ 